package com.tjh.gulimall.order.feign;

import com.tjh.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Create by koala on 2021-05-17
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    /**
     * day117：根据memberId查询该用户的所有收货地址信息
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    public List<MemberAddressVo> getAddress(@PathVariable("memberId")Long memberId);
}

